package com.acme.bankapp.exceptions;

/**
 * This class represents exception that is thrown when we try to add the client
 * to bank, that already contains this client
 * 
 * @author Anton Kotov
 * 
 */
@SuppressWarnings("serial")
public class ClientExistsException extends BankException {

    public ClientExistsException() {
    }

    public ClientExistsException(String clientName) {
	super("Client with name '" + clientName + "' already exists");
    }

    public ClientExistsException(String message, Throwable cause) {
	super(message, cause);
    }

    public ClientExistsException(Throwable cause) {
	super(cause);
    }
}
